/**
 * http://usejsdoc.org/
 */
var _instance = null; //定义初始化_instance
module.exports = function(time){//定义单例类
	/**创建Class*/
	function Class(time){
		this.name = "devintam";
		this.book = "Node.js";
		this.time = time;
	}
	
	/**创建方法*/
	Class.prototype={
			construction:Class,
			show:function(){
				console.log(this.book+" is writed by "+this.name+",time is "+this.time);
			}
	};
	
	/**获取单例对象接口*/
	this.getInstance = function(){
		if(_instance === null){
			_instance = new Class(time);
		}
		return _instance;
	};
};